// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   XYMultipleSeriesDataset.java

package org.achartengine.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

// Referenced classes of package org.achartengine.model:
//			XYSeries

public class XYMultipleSeriesDataset
	implements Serializable
{

	private List mSeries;

	public XYMultipleSeriesDataset()
	{
		mSeries = new ArrayList();
	}

	public synchronized void addSeries(XYSeries xyseries)
	{
		mSeries.add(xyseries);
	}

	public synchronized void addSeries(int i, XYSeries xyseries)
	{
		mSeries.add(i, xyseries);
	}

	public synchronized void removeSeries(int i)
	{
		mSeries.remove(i);
	}

	public synchronized void removeSeries(XYSeries xyseries)
	{
		mSeries.remove(xyseries);
	}

	public synchronized XYSeries getSeriesAt(int i)
	{
		return (XYSeries)mSeries.get(i);
	}

	public synchronized int getSeriesCount()
	{
		return mSeries.size();
	}

	public synchronized XYSeries[] getSeries()
	{
		return (XYSeries[])mSeries.toArray(new XYSeries[0]);
	}
}
